import Layout from '../components/layout/Manage.vue'
import Layouts from "../components/layout/Store.vue"

let routes = [
    {
        path: '/Login',
        meta: {
            title: '登录',
            hidden: true,
        },
        component: () => import('../views/Login.vue')
    },


    
    {
        path: '/',
        redirect: '/HomeManagement',
        name: '后台管理',
        meta: {
            title: '后台管理',
            icon: 'el-icon-notebook-1',
            hidden: true,
        },
        component: Layout,
        children: [
            {
                path: 'HomeManagement',
                name:'首页管理',
                meta: {
                    title: '首页管理',
                    icon: 'el-icon-s-order',
                },
                component: () => import('../views/Home.vue'),

            },

            {
                path: 'ProductManagement',
                name:'产品管理',
                meta: {
                    title: '产品管理',
                    icon: 'el-icon-s-finance',
                },
                component: () => import('../views/management/ProductManagement.vue'),


                children: [{
                    path: 'ClassificationManagement',
                    name:'分类管理',
                    meta: {
                        title: '分类管理',
                        icon: 'el-icon-mobile',

                    },
                    component: () => import('../views/productManagement/ClassificationManagement.vue')
                },



                {
                    path: 'ProductStatistics',
                    name:'产品统计',
                    meta: {
                        title: '产品统计',
                        icon: 'el-icon-s-data',

                    },
                    component: () => import('../views/productManagement/ProductStatistics.vue')
                },


                {
                    path: 'CommodityManagement',
                    name:'商品管理',
                    meta: {
                        title: '商品管理',
                        icon: 'el-icon-s-shop',

                    },
                    component: () => import('../views/productManagement/commodityManagement/Commodity.vue'),
                   
                },

                ]

            },

            {
                path: 'TransactionManagement',
                name:'交易管理',
                meta: {
                    title: '交易管理',
                    icon: 'el-icon-s-claim',
                },
                component: () => import('../views/management/TransactionManagement.vue'),
                children: [{
                    path: 'OrderList',
                    name:'订单列表',
                    meta: {
                        title: '订单列表',
                        icon: 'el-icon-s-order',
                    },
                    component: () => import('../views/transactionManagement/OrderList.vue'),
                },
                ]

            },

            {
                path: 'PaymentManagement',
                name:'支付管理',
                meta: {
                    title: '支付管理',
                    icon: 'el-icon-money',
                },
                component: () => import('../views/management/PaymentManagement.vue'),
                children: [
                {
                    path: 'PaymentSettings',
                    name:'支付设置',
                    meta: {
                        title: '支付设置',
                        icon: 'el-icon-wallet',
                    },
                    component: () => import('../views/paymentManagement/PaymentSettings.vue'),
                }
            ]

            },

            {
                path: 'SystemManagement',
                name:'系统管理',
                meta: {
                    title: '系统管理',
                    icon: 'el-icon-s-tools',
                },
                component: () => import('../views/management/SystemManagement.vue'),
                children:[
                    {
                    path: 'SystemUsre',
                    name:'用户管理',
                    meta: {
                        title: '用户管理',
                        icon: 'el-icon-s-custom',
                    },
                     component: () => import('../views/systemManagement/SystemUsre.vue'),
                },
          
                {
                    path: 'SystemSettings',
                    name:'网站设置',
                    meta: {
                        title: '网站设置',
                        icon: 'el-icon-s-platform',
                    },
                     component: () => import('../views/systemManagement/SystemSettings.vue'),
                }
            ]

            },

            

            {
                path: 'AdvertisingManagement',
                name:'广告管理',
                meta: {
                    title: '广告管理',
                    icon: 'el-icon-data-board',
                },
                component: () => import('../views/management/AdvertisingManagement.vue'),
                children:[{
                    path: 'Advertising',
                    name:'广告轮播图',
                    meta: {
                        title: '广告轮播图',
                        icon: 'el-icon-data-analysis',
                    },
                    component: () => import('../views/advertisingManagement/Advertising.vue'),
                }]

            },

            {
                path: 'AuthorityManagement',
                name:'权限管理',
                meta: {
                    title: '权限管理',
                    icon: 'el-icon-lock',
                },
                component: () => import('../views/management/AuthorityManagement.vue'),
                children:[
                    // {
                //     path: 'PermissionList',
                //     name:'权限列表',
                //     meta: {
                //         title: '权限列表',
                //         icon: 'el-icon-key',
                //     },
                //     component: () => import('../views/authorityManagement/PermissionList.vue'),
                // },
                {
                    path: 'RoleList',
                    name:'角色列表',
                    meta: {
                        title: '角色列表',
                        icon: 'el-icon-view',
                    },
                    component: () => import('../views/authorityManagement/RoleList.vue'),
                }]
            },
        ]


    },


    
   







    {
        path: '/Store',
        redirect: '/Store/HomeManagement',
        name: '后台商户管理系统',
        meta: {
            title: '后台商户管理系统',
            icon: 'el-icon-notebook-1',
            hidden:true,
          
        },
        component: Layouts,
        children:[
            {
                path: 'HomeManagement',
                name:'首页管理',
                meta: {
                    title: '首页管理',
                    icon: 'el-icon-s-order',
                    hidden:true
                },
                component: () => import('../views/Home.vue'),

            },
            {
            path: 'StoreManagement',
            name:'商户管理',
            meta: {
                title: '商户管理',
                icon: 'el-icon-s-grid',
                hidden:true,
            },
            component: () => import('../views/management/StoreManagement.vue'),
            children:[
            {
                path: 'StoreCommodityManagement',
                name:'商品管理',
                meta: {
                    title: '商品管理',
                    icon: 'el-icon-s-cooperation',
                    hidden:true,
                },
                component: () => import('../views/storeManagement/StoreCommodityManagement.vue'),

            },
            {
                path: 'StoreCommodityAdd',
                name:'商品添加',
                meta: {
                    title: '商品添加',
                    icon: 'el-icon-circle-plus',
                    hidden:true,
                },
                component: () => import('../views/storeManagement/StoreCommodityAdd.vue'),
                
            },
            {
                path: 'StoreClassificationParameters',
                name:'分类参数',
                meta: {
                    title: '分类参数',
                    icon: 'el-icon-circle-plus',
                    hidden:true,
                },
                component: () => import('../views/storeManagement/StoreClassificationParameters.vue'),
                
            },
            {
                path: 'StoreCommodityOrderManagement',
                name:'商品订单管理',
                meta: {
                    title: '商品订单管理',
                    icon: 'el-icon-s-order',
                    hidden:true,
                },
                component: () => import('../views/storeManagement/StoreCommodityOrderManagement.vue'),
            }
        ]

        },]
 
       
    }



]

export default routes